{
 "cells": [
  {
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "### test 1\n",
    "\n"
   ],
   "id": "9f6dc2256cc14713"
  },
  {
   "metadata": {},
   "cell_type": "code",
   "outputs": [],
   "execution_count": null,
   "source": [
    "print('ok ...')\n",
    "\n",
    "name = 'zxf'\n",
    "\n",
    "print(f'name: {name} ...')\n",
    "\n"
   ],
   "id": "20f31f7b2934cb5"
  },
  {
   "metadata": {},
   "cell_type": "markdown",
   "source": "### test 2\n",
   "id": "410d4bb1c0694898"
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-11-15T17:17:52.997878Z",
     "start_time": "2025-11-15T17:17:52.993783Z"
    }
   },
   "cell_type": "code",
   "source": [
    "age = 32\n",
    "print(f'age: {age} ...')\n",
    "\n",
    "# name1 = name + '-2' # 上面运行完之后，可以识别\n",
    "# print(f'name1: {name1} ...')\n",
    "\n",
    "name1 = 'xx' + '-2'\n",
    "print(f'name1: {name1} ...')"
   ],
   "id": "1ceefeaf9b18122b",
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "age: 32 ...\n",
      "name1: xx-2 ...\n"
     ]
    }
   ],
   "execution_count": 13
  },
  {
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "### test 3\n",
    "- 测试 `test 3`\n",
    "- notebook - **001**\n",
    "\n"
   ],
   "id": "27965c9246d12acc"
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-11-15T15:40:03.615056Z",
     "start_time": "2025-11-15T15:39:58.654438Z"
    }
   },
   "cell_type": "code",
   "source": [
    "year = 2025\n",
    "month = 12\n",
    "print(f'year: {year} month: {month} ...')"
   ],
   "id": "77c9d3f7250da8f",
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "year: 2025 month: 12 ...\n"
     ]
    }
   ],
   "execution_count": 12
  },
  {
   "metadata": {},
   "cell_type": "code",
   "outputs": [],
   "execution_count": null,
   "source": "",
   "id": "d08bbf8be9f565f1"
  },
  {
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "### test 4\n",
    "- [ ] xx\n",
    "- [ ] bb"
   ],
   "id": "c38fbe1cbfc6f915"
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-11-15T17:19:27.433678Z",
     "start_time": "2025-11-15T17:19:27.429767Z"
    }
   },
   "cell_type": "code",
   "source": "print('xx', 'bb')",
   "id": "4a5d03e682184eed",
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "xx bb\n"
     ]
    }
   ],
   "execution_count": 1
  },
  {
   "metadata": {},
   "cell_type": "markdown",
   "source": "### test out",
   "id": "38204d065d1b5e88"
  },
  {
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "- py 代码\n",
    "```bash\n",
    "# 只保留代码和输出（无 Markdown）\n",
    "jupyter nbconvert --to script base01.ipynb\n",
    "```\n",
    "- html\n",
    "```bash\n",
    "# 导出为 HTML\n",
    "jupyter nbconvert --to html base01.ipynb\n",
    "```\n",
    "- markdown\n",
    "```bash\n",
    "jupyter nbconvert --to markdown base01.ipynb\n",
    "```\n",
    "- pdf (需要安装 panddoc，没试了)\n",
    "```bash\n",
    "# 导出为 PDF\n",
    "jupyter nbconvert --to pdf base01.ipynb\n",
    "```"
   ],
   "id": "fa08165361f6c0fe"
  },
  {
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "### test JS\n",
    "- 浏览器打开才有用\n",
    "- ref: http://localhost:8888/notebooks/notebook/base01.ipynb\n",
    "- 但打开后会改格式，没有保持 PyCharm 格式\n"
   ],
   "id": "ee8ac7403177972a"
  },
  {
   "metadata": {},
   "cell_type": "code",
   "outputs": [],
   "execution_count": null,
   "source": [
    "%%javascript\n",
    "\n",
    "alert(\"Hello from JavaScript!\");\n",
    "console.log(\"This is printed in the browser console\");"
   ],
   "id": "da4aaf4e8a7fefb2"
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
